<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>

<h1>
    <fmt:message key="app.page.register"/>
</h1>

<div class="entry">
<div class="entry-left">
    <img src="/static-images/pic-edit.gif">
</div>
<div class="entry-right">
<div class="entry-header">
    <fmt:message key="app.register.title"/>
</div>
<div class="entry-text">

<form action="<c:url value=""/>" method="post">
<table border="0">
<spring:bind path="command.username">
    <tr>
        <td>
            <fmt:message key="app.register.username"/>*
        </td>
        <td>
            <spring:bind path="command.username">
                <input type="text" name="${status.expression}" value="${status.value}"/>
            </spring:bind>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.password">
    <tr>
        <td>
            <fmt:message key="app.register.password"/>*
        </td>
        <td>
            <input type="password" name="${status.expression}" value=""/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>


<spring:bind path="command.password2">
    <tr>
        <td>
            <fmt:message key="app.register.password2"/>*
        </td>
        <td>
            <input type="password" name="${status.expression}" value=""/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>

</spring:bind>


<spring:bind path="command.email">
    <tr>
        <td>
            <fmt:message key="app.register.email"/>
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.firstName">
    <tr>
        <td>
            <fmt:message key="app.register.firstName"/>*
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.lastName">
    <tr>
        <td>
            <fmt:message key="app.register.lastName"/>*
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.city">
    <tr>
        <td>
            <fmt:message key="app.register.city"/>*
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.district">
    <tr>
        <td>
            <fmt:message key="app.register.district"/>
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.bicycle">
    <tr>
        <td>
            <fmt:message key="app.register.bicycle"/>
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<spring:bind path="command.style">
    <tr>
        <td>
            <fmt:message key="app.register.style"/>
        </td>
        <td>
            <input type="text" name="${status.expression}" value="${status.value}"/>
        </td>
    </tr>
    <c:if test="${status.error}">
        <tr>
            <td>&nbsp;</td>
            <td class="error">
                <fmt:message key="${status.errorCode}"/>
            </td>
        </tr>
    </c:if>
</spring:bind>

<tr>
    <td colspan="2" style="text-align: left; font-size: 10px;">
        <fmt:message key="app.register.mandatory.notice"/>
    </td>
</tr>
<tr>
    <td colspan="2" style="text-align: right;">
        <input type="submit" value="<fmt:message key="app.register.submit"/>"/>
    </td>
</tr>
</table>

</form>
</div>
</div>
</div>